﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using QuanLyTruongMamNon.Man_Hinh;

namespace QuanLyTruongMamNon
{
    public partial class frmChinh : Form
    {
        public frmChinh()
        {
            InitializeComponent();
        }

        private void thoatToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void frmChinh_FormClosing(object sender, FormClosingEventArgs e)
        {
            DialogResult dr = MessageBox.Show("Ung dung se dong lai. Ban co muon khong?", "Thoat", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
            if (dr == DialogResult.Cancel)
            {
                e.Cancel = true;
            }
        }

    
        private void giaoVienToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmGiao_Vien frmGV = new frmGiao_Vien();
            frmGV.MdiParent = this;
            frmGV.Show();
        }

        private void namHocToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmNam_Hoc frmNH = new frmNam_Hoc();
            frmNH.MdiParent = this;
            frmNH.Show();
        }

        private void hocSinhToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmHoc_Sinh frmHS = new frmHoc_Sinh();
            frmHS.MdiParent = this;
            frmHS.Show();
        }

        private void lopHocToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmLop frmL = new frmLop();
            frmL.MdiParent = this;
            frmL.Show();
        }

        private void monHocToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmMon_Hoc frmMH = new frmMon_Hoc();
            frmMH.MdiParent = this;
            frmMH.Show();

        }

        private void baiHoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmBai_Hoc frmBH = new frmBai_Hoc();
            frmBH.MdiParent = this;
            frmBH.Show();
        }

        private void thucDonToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmThuc_Don frmTD = new frmThuc_Don();
            frmTD.MdiParent = this;
            frmTD.Show();
        }

        private void hocSinhToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            frmTra_Cuu_Hoc_Sinh frmTC = new frmTra_Cuu_Hoc_Sinh();
            frmTC.MdiParent = this;
            frmTC.Show();
        }

        private void capNhatNamHocToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmXep_Lop frmXL = new frmXep_Lop();
            frmXL.MdiParent = this;
            frmXL.Show();
        }

        private void capNhatGiaoVienToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmChuyen_Lop frmCL = new frmChuyen_Lop();
            frmCL.MdiParent = this;
            frmCL.Show();
        }

        private void capNhatHocSinhToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmThoi_Gian_Bieu frmTGB = new frmThoi_Gian_Bieu();
            frmTGB.MdiParent = this;
            frmTGB.Show();
        }

        private void ketQuaTuanToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmKet_Qua_Tuan frmKQT = new frmKet_Qua_Tuan();
            frmKQT.MdiParent=this;
            frmKQT.Show();
        }

        private void ketQuaThangToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmKet_Qua_Thang frmKQThang = new frmKet_Qua_Thang();
            frmKQThang.MdiParent = this;
            frmKQThang.Show();
        }

        private void ketQuaNamToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmKet_Qua_Cuoi_Nam frmNam = new frmKet_Qua_Cuoi_Nam();
            frmNam.MdiParent = this;
            frmNam.Show();
        }

        private void capNhatLopHocToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmTham_So frmTSo = new frmTham_So();
            frmTSo.MdiParent = this;
            frmTSo.Show();
        }

        private void dangNhapToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmDang_Nhap frmDN = new frmDang_Nhap();
            frmDN.MdiParent=this;
            frmDN.Show();
        }

        private void doiMatKhauToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmDoi_Mat_Khau frmMk = new frmDoi_Mat_Khau();
            frmMk.MdiParent=this;
            frmMk.Show();
        }

        private void frmChinh_Load(object sender, EventArgs e)
        {

        }

        
    }
}
